package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;



import mx.dao.AdvertDao;
import mx.entity.Advert;
import mx.service.AdvertService;

@Service
public class AdvertServiceImpl implements AdvertService {

	@Resource
	private AdvertDao advertDao;

	public Advert findById(Integer id) {
		return advertDao.findById(id);
	}

	public List<Advert> list(Map<String, Object> map) {
		return advertDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return advertDao.getTotal(map);
	}

	public int add(Advert advert) {
		return advertDao.add(advert);
	}

	public int delete(Integer id) {
		return advertDao.delete(id);
	}

	public int update(Advert advert) {
		return advertDao.update(advert);
	}

}
